@model ExpertSMS.Models.BillOfLading

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>BillOfLading</legend>

    <div class="display-label">Date</div>
    <div class="display-field">@String.Format("{0:g}", Model.Date)</div>

    <div class="display-label">Supplier</div>
    <div class="display-field">@(Model.Supplier == null ? "None" : Model.Supplier.Name)</div>

    <div class="display-label">Store</div>
    <div class="display-field">@(Model.Store == null ? "None" : Model.Store.Name)</div>

    <div class="display-label">BillOfLadingProducts</div>
    <div class="display-field">@(Model.BillOfLadingProducts == null ? "None" : Model.BillOfLadingProducts.Count.ToString())</div>

    <div class="display-label">NetCost</div>
    <div class="display-field">@String.Format("{0:F}", Model.NetCost)</div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}


